export function formateDate(val: string) {
  if (!val) return "";
  let date = new Date(val);
  let year = incZero(date.getFullYear());
  let mouse = incZero(date.getMonth()+1);
  let data = incZero(date.getDate());
  let house = incZero(date.getHours());
  let minutes = incZero(date.getMinutes());
  let second = incZero(date.getSeconds());
  function incZero(val: number) {
    return val < 10 ? "0" + val : val;
  }
  return `${year}-${mouse}-${data} ${house}:${minutes}:${second}`;
}
